//
//  HomeButton.swift
//  SinaWeibo
//
//  Created by 郭平 on 15/10/11.
//  Copyright © 2015年 郭平. All rights reserved.
//

import UIKit

class HomeButton: UIButton {

   override func layoutSubviews() {
        super.layoutSubviews()
    
        titleLabel?.x = 0
        imageView?.x = CGRectGetMaxX(titleLabel?.frame ?? CGRectZero) + 5
    
    }
    
   override func sizeToFit() {
        super.sizeToFit()
    
        width = width + 5
    
    }

}
